home *** CD-ROM | disk | FTP | other *** search
- <?xml version="1.0" encoding="utf-8"?>
- <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" ><xsl:output method="xml" indent="yes"/>
- <xsl:include href="TrimL.xsl" />
- <xsl:include href="TrimR.xsl" />
-
- <xsl:template name="Trim">
-
- <!--This template will recursively trim the trailing spaces from a string-->
- <xsl:param name="strInput" select="''"/>
-
- <!-- Call the template that will trim off Left spaces (recursively, of course ) -->
- <xsl:variable name="InputL">
-
- <xsl:call-template name="TrimL" >
- <xsl:with-param name="strInput" select="$strInput"/>
- </xsl:call-template>
- </xsl:variable>
-
- <!-- Call the template that will trim off right spaces (recursively, of course ) -->
- <xsl:variable name="InputR">
- <xsl:call-template name="TrimR" >
- <xsl:with-param name="strInput" select="$InputL"/>
- </xsl:call-template>
- </xsl:variable>
-
- <xsl:value-of select="$InputR" />
-
- </xsl:template>
-
- </xsl:stylesheet>
-